// 导入公共组件 的组件
import PageTools from './PageTools'
import UploadExcel from './UploadExcel'
import UploadImg from './UploadImg'
import ImageHolder from './ImageHolder'
import Lang from './lang'
import ScreenFull from './ScreenFull'

// 将组件统一放到数组中
const components = [
  PageTools,
  UploadExcel,
  UploadImg,
  ImageHolder,
  Lang,
  ScreenFull
]

// 导出
export default {
  install(Vue) {
    // 将工具栏组件 注册为公共组件
    // Vue.components('PageTools', PageTools)

    // element-ui 的写法
    components.forEach(component => {
      Vue.component(component.name, component)
    })
  }
}
